<template>
  <div class="WithdrawalWay">
    <div class="prompt">提现到</div>
    <div class="list">
      <div class="item" @click="choose('1')">
        <img
          class="select"
          v-if="type == 1"
          src="../assets/image/selected.png"
          alt=""
        />
        <img
          class="select"
          v-else
          src="../assets/image/noselected.png"
          alt=""
        />
        <img class="icon" src="../assets/image/alipay.png" alt="" />
        支付宝
      </div>
      <div class="item" @click="choose('2')">
        <img
          class="select"
          v-if="type == 2"
          src="../assets/image/selected.png"
          alt=""
        />
        <img
          class="select"
          v-else
          src="../assets/image/noselected.png"
          alt=""
        />
        <img class="icon" src="../assets/image/wxpay.png" alt="" />
        微信支付
      </div>
    </div>
    <div class="footText">请绑定本人账户，否则将提现失败</div>
    <div class="submitBtn" @click="submit">提交</div>
    <div class="agreement"><span>服务协议</span></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      type: "1",
    };
  },
  methods: {
    choose(type) {
      this.type = type;
    },
    submit() {
      this.$router.push({
        path: "/WithdrawalBack",
        query: {
          type: 1,
          prompt: 1,
        },
      });
    },
  },
};
</script>

<style lang="less" scoped>
.WithdrawalWay {
  padding: 15px;
  .prompt {
    font-size: 15px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 21px;
    color: #333333;
  }
  .list {
    padding-top: 10px;
    .item {
      padding: 17px 5px;
      display: flex;
      align-items: center;
      font-size: 17px;
      font-family: PingFang SC;
      font-weight: 400;
      line-height: 24px;
      color: #333333;
      .select {
        width: 20px;
        height: 20px;
      }
      .icon {
        margin-left: 16px;
        margin-right: 10px;
        width: 32px;
        height: 32px;
      }
    }
  }
  .footText {
    margin-top: 12px;
    margin-bottom: 60px;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
    color: #666666;
  }
  .submitBtn {
    width: 100%;
    height: 50px;
    text-align: center;
    line-height: 50px;
    background: linear-gradient(90deg, #9981ed 0%, #b871ff 100%);
    font-size: 17px;
    color: #ffffff;
    border-radius: 25px;
  }
  .agreement {
    text-align: center;
    margin-top: 10px;
    font-size: 15px;
    font-family: PingFang SC;
    font-weight: 400;
    color: #9981ed;
  }
}
</style>